package com.iworkh.spring.anno.service;

import com.iworkh.spring.anno.dao.BaseDao;
import com.iworkh.spring.anno.domain.entity.Student;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Student Service
 *
 * @author: iworkh-沐雨云楼
 * @date: 2019-12-18
 */
@Service
public class StudentService {

    @Resource(name = "studentDao")
    private BaseDao studentDao;

    public void save(Student student){
        System.out.println("StudentService...save");
        studentDao.save(student);
    }

    public void delete(String id){
        System.out.println("StudentService...delete");
        studentDao.delete(id);
    }
}
